<?php
require_once 'FModel/Common/BaseFactory.php';

final class CmsServiceFactory extends BaseFactory {
	const SCOPE = 'CmsService';

	private static $instance;

	/**
	 * @return CmsServiceFactory
	 */
	public static function getInstance() {
		if (!self::$instance) self::$instance = new self();
		return self::$instance;
	}
	
	/**
	 * @return CmsArticleService
	 */
	public function createCmsArticleService() {
		return $this->container->createObjectInstance(self::SCOPE, 'CmsArticleService', 'Models/Cms/Service/CmsArticleService.php');
	}
}

